package com.zhan.utils.lock;

import java.lang.annotation.*;

/**
 * @author 白尚兵
 * @date 2019/9/18 14:56
 **/
@Target({ElementType.METHOD})
@Documented
@Retention(RetentionPolicy.RUNTIME)
public @interface RedisLock {
    String key() default "";

    LockType type() default LockType.METHOD;

    long waitTime() default 10L;
}
